<%@ Page Language="vb" AutoEventWireup="false" Codebehind="UpdateMyDemographics.aspx.vb" Inherits="Renew.UpdateMyDemographics"%>
<!DOCTYPE HTML PUBLIC "-//W3C//Dtd HTML 4.0 Transitional//EN">
<html>
	<head>
		<title>Update My Demographics</title>
		<meta content="JavaScript" name="vs_defaultClientScript" />
		<meta content="http://schemas.microsoft.com/intellisense/ie5" name="vs_targetSchema" />
		<link href="Styles.css" type="text/css" rel="stylesheet" />
	</head>
	<body>
		<form id="Form2" method="post" runat="server">
			<h1>Update My Demographics</h1>
			<asp:label id="lbl1" Runat="server">
				<h3>This Form Allows you to:</h3>
			</asp:label><br/>
			<asp:label id="Label1" Runat="server">Update My Demographics<br/>Once you have updated your demographics, click the save button and then the return to main button.</asp:label><br/>
			<hr/>
			<table width="100%">
				<tr>
					<td align="center" colspan="3"><asp:validationsummary id="ValidationSummary2" runat="server"></asp:validationsummary></td>
				</tr>
				<tr>
					<td align="right" width="20%"><asp:label id="Label2" runat="server">MemberID:</asp:label>&nbsp;
						<asp:textbox id="txtMemberID" Runat="server" Width="51px" Enabled="False">0</asp:textbox></td>
					<td align="center" width="30%"><asp:label id="Label3" runat="server">Membership Status:</asp:label>&nbsp;
						<asp:textbox id="txtStatus" Runat="server" Width="90px" Enabled="False"></asp:textbox>&nbsp;</td>
                    <td align="left" width="50%"><asp:label 
                            id="Label7" runat="server">Membership Referral Code:</asp:label>
						<asp:textbox id="txtMembershipReferralCode" Runat="server" Width="90px" Enabled="False"></asp:textbox>
                        <asp:Button ID="btnGenerateReferralCode" runat="server" 
                            Text="Generate Referral Code" visible="false" />
                        </td>
				</tr>
			</table>
			<table id="ApplicationForm" width="100%">
				<tr>
					<td width="30%"></td>
					<td width="40%"><asp:textbox id="txtAffiliate" runat="server" Visible="False"></asp:textbox></td>
					<td width="30%"></td>
				</tr>
				<tr class="DataGridHeader">
					<td colspan="4">Personal Information</td>
				</tr>
				<tr>
					<td>First Name:</td>
					<td colspan="2"><asp:textbox id="PersonalFirstName" Runat="server" Width="200"></asp:textbox></td>
				</tr>
				<tr>
					<td>Last Name:</td>
					<td colspan="2"><asp:textbox id="PersonalLastName" Runat="server" Width="200"></asp:textbox></td>
				</tr>
				<tr>
					<td>Email Address:</td>
					<td colspan="2"><strong><font color="red"><asp:textbox id="PersonalEmail" runat="server" Width="200px"></asp:textbox></font></strong></td>
				</tr>
				<tr>
					<td>Home Phone:</td>
					<td colspan="2"><asp:textbox id="PersonalHomePhone" runat="server"></asp:textbox></td>
				</tr>
				<tr>
					<td>Address:
					</td>
					<td colspan="2">
					    <asp:textbox id="PersonalAddress1" runat="server" Width="264px"></asp:textbox>
					</td>
				</tr>
				<tr>
					<td>Additional Address Info:
					</td>
					<td colspan="2">
					    <asp:textbox id="PersonalAddress2" runat="server" Width="264px"></asp:textbox>
					</td>
				</tr>
				<tr>
					<td colspan="2">City:
						<asp:textbox id="PersonalCity" runat="server" Width="150px"></asp:textbox>
						<strong><font color="red"></font></strong>
					</td>
					<td colspan="2">Postal Code:
						<asp:textbox id="PersonalPostalCode" runat="server" Width="80px"></asp:textbox></td>
				</tr>
				<tr>
					<td colspan="3">Province:
    						<asp:dropdownlist id="ddlPersonalProvince" runat="server" Width="160px"  AutoPostBack="True" OnSelectedIndexChanged="SetAffiliate" />
						<strong><font color="red">*</font></strong>
						<asp:rangevalidator id="RangeValidator1" runat="server" ControlToValidate="ddlPersonalProvince" ErrorMessage="Province Is Required"
							Type="Integer" MinimumValue="1" MaximumValue="12">Required, Select International for Outside of Canada</asp:rangevalidator>
					</td>
				</tr>
				<tr>
					<td><asp:label id="lblOtherState" runat="server" Visible="False">State: </asp:label>
					<asp:textbox id="txtOtherState" runat="server" Visible="False"></asp:textbox></td>
					<td><asp:label id="lblOtherCountry" runat="server" Visible="False">Country: </asp:label>
					<asp:textbox id="txtOtherCountry" runat="server" Visible="False"></asp:textbox></td>
				</tr>
				<tr>
					<td colspan="3">
						<p>
                        <asp:ScriptManager ID="ScriptManager1" runat="server" />
			            <asp:UpdatePanel ID="UpdatePanel1" runat="server" ChildrenAsTriggers="False" UpdateMode="Conditional">
                        <ContentTemplate>                        
						    <asp:label id="lblAffiliate" runat="server" Visible="False">Choose an Affiliate: </asp:label>
						    <asp:dropdownlist id="ddlAffiliate" runat="server" Width="208px" 
                                OnSelectedIndexChanged="SetFee" Visible="False" />&nbsp;
							    <asp:label id="lblFee" runat="server" Visible="False"></asp:label>
							    <asp:textbox id="txtProvinceID" runat="server" Width="32px" Visible="False"></asp:textbox>
							    <asp:textbox id="txtAffiliateID" runat="server" Width="32px" Visible="False"></asp:textbox><br/>
							    <asp:label id="lbl_ENAODistricts" runat="server" Visible="False">ENAO District:</asp:label>&nbsp;
							    <asp:dropdownlist id="ddl_ENAODistricts" runat="server" Visible="False"></asp:dropdownlist>
							    <asp:rangevalidator id="rv_ENAODistricts" runat="server" ControlToValidate="ddl_ENAODistricts" ErrorMessage="ENAO District Required"
								    Type="Integer" MinimumValue="1" MaximumValue="12" Enabled="false" Visible="False">*Required, Select unknown if unsure of your District</asp:rangevalidator><br/>
							    <asp:checkbox id="check_RNAO" runat="server" Visible="False" 
                                    Text="RNAO Member? (check for yes, unchecked for no)"></asp:checkbox>
                            </ContentTemplate>
                        <Triggers>
                            <asp:AsyncPostBackTrigger ControlID="ddlPersonalProvince" EventName="SelectedIndexChanged" />
                            <asp:AsyncPostBackTrigger ControlID="ddlAffiliate" EventName="SelectedIndexChanged" />
                        </Triggers>
                    </asp:UpdatePanel>
						</p>
					</td>
				</tr>
				<tr>
					<td></td>
				</tr>
				<tr class="DataGridHeader">
					<td colspan="4">Professional Information</td>
				</tr>
			</table>
			<table id="InstructionInformation" width="100%">
				<tr>
					<td width="30%"></td>
					<td width="40%"></td>
					<td width="30%"></td>
				</tr>
				<tr>
					<td>ENC(C) Emergency Nursing Certified Canada:
					</td>
					<td>
						<asp:checkbox id="chkENCCCertified" runat="server"></asp:checkbox></td>
				</tr>
				<tr>
					<td>Current TNCC Course Director:</td>
					<td><asp:checkbox id="chkTNCCDirector" runat="server"></asp:checkbox></td>
				</tr>
                <tr>
					<td>Current TNCC Instructor:</td>
					<td colspan="2">
                        <asp:checkbox id="chkTNCCInstructor" runat="server" AutoPostBack="True"></asp:checkbox>&nbsp;
						<asp:label id="lblTNCCID" runat="server" Visible="False">TNCC ID:</asp:label>
                        <asp:textbox id="txtTNCCID" runat="server" Width="83px" Visible="False"></asp:textbox>
                        <asp:requiredfieldvalidator id="validateTNCCID" runat="server" 
                            ControlToValidate="txtTNCCID" ErrorMessage="TNCC ID Required for Instructor"
							Enabled="False" Visible="False">* Required: Type NEW if unassigned</asp:requiredfieldvalidator>
                    </td>
				</tr>
				<tr>
					<td>Current ENPC Course Director:</td>
					<td colspan="2"><asp:checkbox id="chkENPCDirector" runat="server"></asp:checkbox>&nbsp;
                    </td>
				</tr>
				<tr>
					<td>Current ENPC Instructor:</td>
					<td colspan="2">
                        <asp:checkbox id="chkENPCInstructor" runat="server" AutoPostBack="True"></asp:checkbox>
                        &nbsp;
                        <asp:label id="lblENPCID" runat="server" Visible="False">ENPC ID:</asp:label>
                        <asp:textbox id="txtENPCID" runat="server" Width="88px" Visible="False"></asp:textbox>
                        <asp:requiredfieldvalidator id="ValidateENPCID" runat="server" ControlToValidate="txtENPCID" 
                            ErrorMessage="ENPC ID Required for Instructor"
							Enabled="False" Visible="False">* Required: Type NEW if unassigned</asp:requiredfieldvalidator>
                    </td>
				</tr>
                <tr>
					<td>Current CATN Course Director:</td>
					<td colspan="2">
                        <asp:checkbox id="chkCATNDirector" runat="server"></asp:checkbox>&nbsp;
						<asp:label id="lblCATNID" runat="server" Visible="False">CATN ID:</asp:label>
                        <asp:textbox id="txtCATNID" runat="server" Width="88px" Visible="False"></asp:textbox>
                        <asp:requiredfieldvalidator id="validateCATNID" runat="server" ControlToValidate="txtCATNID" 
                            ErrorMessage="CATN ID Required for Instructor"
							Enabled="False" Visible="False">* Required: Type NEW if unassigned</asp:requiredfieldvalidator>
                    </td>
				</tr>
            </table>
        <asp:Panel ID="panelInstructorTrainer" runat="server" Visible="false">
        <table id="tblInstructorTrainer" width="100%">
				<tr>
					<td>Current P-CTAS Provider:</td>
					<td><asp:checkbox id="chkPCTASProvider" runat="server"></asp:checkbox></td>
				</tr>
				<tr>
					<td>Current P-CTAS Instructor:</td>
					<td><asp:checkbox id="chkPCTASInstructor" runat="server"></asp:checkbox></td>
				</tr>
				<tr>
					<td>Current P-CTAS Instructor Trainer:</td>
					<td><asp:checkbox id="chkPCTASTrainer" runat="server"></asp:checkbox></td>
				</tr>
				<tr>
					<td>Current P-CTAS Course Director:</td>
					<td><asp:checkbox id="chkPCTASDirector" runat="server"></asp:checkbox></td>
				</tr>
				<tr>
					<td>Current A-CTAS Provider:</td>
					<td><asp:checkbox id="chkACTASProvider" runat="server"></asp:checkbox></td>
				</tr>
				<tr>
					<td>Current A-CTAS Instructor:</td>
					<td><asp:checkbox id="chkACTASInstructor" runat="server"></asp:checkbox></td>
				</tr>
				<tr>
					<td>Current A-CTAS Instructor Trainer:</td>
					<td><asp:checkbox id="chkACTASTrainer" runat="server"></asp:checkbox></td>
				</tr>
				<tr>
					<td>Current A-CTAS Course Director:</td>
					<td><asp:checkbox id="chkACTASDirector" runat="server"></asp:checkbox></td>
				</tr>
				<tr>
					<td>Current C-CTAS Trainer:</td>
					<td><asp:checkbox id="chkCCTASTrainer" runat="server"></asp:checkbox></td>
				</tr>
				<tr>
					<td>Current C-CTAS Provider:</td>
					<td><asp:checkbox id="chkCCTASProvider" runat="server"></asp:checkbox></td>
				</tr>
				<tr>
					<td>Current ENPC Provider:</td>
					<td><asp:checkbox id="chkENPCProvider" runat="server"></asp:checkbox></td>
				</tr>
				<tr>
					<td>Current ENPC Instructor Trainer:</td>
					<td><asp:checkbox id="chkENPCTrainer" runat="server"></asp:checkbox>&nbsp;</td>
				</tr>
                <tr>
					<td>Current CATN Provider:</td>
					<td><asp:checkbox id="chkCATNProvider" runat="server"></asp:checkbox></td>
				</tr>
				<tr>
					<td>Current CATN Instructor:</td>
					<td><asp:checkbox id="chkCATNInstructor" runat="server"></asp:checkbox></td>
				</tr>
				<tr>
					<td>Current CATN Instructor Trainer:</td>
					<td><asp:checkbox id="chkCATNTrainer" runat="server"></asp:checkbox>&nbsp;</td>
				</tr>
				<tr>
					<td>Current TNCC Provider:</td>
					<td><asp:checkbox id="chkTNCCProvider" runat="server"></asp:checkbox></td>
				</tr>
				<tr>
					<td>Current TNCC Instructor Trainer:</td>
					<td><asp:checkbox id="chkTNCCTrainer" runat="server"></asp:checkbox>&nbsp;</td>
				</tr>
			</table>
			</asp:Panel>
			<table id="ApplicationForm2" width="100%">
				<tr>
					<td width="30%"></td>
					<td width="40%"></td>
					<td width="30%"></td>
				</tr>
				<tr class="DataGridHeader">
					<td style="HEIGHT: 17px" colspan="3">Area of Employment</td>
				</tr>
				<tr>
					<td>Administration:
					</td>
					<td><asp:checkbox id="chkEmployeeAdministration" runat="server"></asp:checkbox></td>
				</tr>
				<tr>
					<td>Clinical:
					</td>
					<td><asp:checkbox id="chkEmployeeClinical" runat="server"></asp:checkbox></td>
				</tr>
				<tr>
					<td>Educator:
					</td>
					<td><asp:checkbox id="chkEmployeeEducator" runat="server"></asp:checkbox></td>
				</tr>
				<tr>
					<td>Research:
					</td>
					<td><asp:checkbox id="chkEmployeeResearch" runat="server"></asp:checkbox></td>
				</tr>
				<tr>
					<td>Work Phone:</td>
					<td colspan="2"><asp:textbox id="txtWorkPhone" runat="server"></asp:textbox></td>
				</tr>
				<tr>
					<td>Nurses License Number:</td>
					<td colspan="2"><asp:textbox id="txtNurseLicenseID" runat="server"></asp:textbox></td>
				</tr>
				<tr>
					<td>Employer:</td>
					<td colspan="2"><asp:textbox id="txtEmployer" runat="server"></asp:textbox></td>
				</tr>
				<tr>
					<td colspan="3"><asp:label id="Label6" Runat="server" Font-Bold="True">Once you have updated your demographics, click the save button and then the return to main button.</asp:label><br/>
						<asp:validationsummary id="ValidationSummary1" runat="server"></asp:validationsummary></td>
				</tr>
				<tr align="center">
					<td><asp:button id="BtnCancel" runat="server" Text="Cancel" CausesValidation="False"></asp:button>&nbsp;
						<asp:button id="btnReturn" runat="server" Text="Return to Main" CausesValidation="False"></asp:button></td>
					<td><asp:button id="btnSave" runat="server" Text="Save Update"></asp:button></td>
					<td></td>
				</tr>
			</table>
		</form>
	</body>
</html>
